package com.fbli.test.service;

import com.fbli.test.entity.Authority;
import com.fbli.test.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthorityService {
    Authority selectByPrimaryKey(Integer id);
    List<Authority> selectByUserId(long userId);
    List<Authority> selectAll();
    /**
     * 添加权限
     * @param prems 权限名数组
     * @param userId 用户id
     */
    boolean addAuthority(String[] prems, long userId,String role);
}
